﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using ExpenseManagement.Utility;
using ExpenseManagement.Areas.User.Models;
using EM.BasePage;
namespace ExpenseManagement.Areas.User.Views
{
    public class UserRegistrationView : BaseView
    {
        public string Render()
        {
            StringBuilder view = new StringBuilder(Utils.ReadView("User.UserRegistration.html"));
            return view.ToString();
        }

        public void Unbind(System.Collections.Specialized.NameValueCollection viewData, UserRegistrationModel  model)
        {
          UnbindView(viewData, model);
          model.Name = System.Convert.ToString(viewData["FirstName"]) + " " + System.Convert.ToString(viewData["LastName"]); 
        }
    }
}